package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

@Entity
@Table(name = "admin")
public class Admin implements Serializable {

    @Id
    @Column(name = "pkid")
    private Integer pkId;

    @Column(name = "phone")
    private String phone;

    @Column(name = "admin_name")
    private String adminName;

    private Integer password;

    @Column(name = "admin_info")
    private String adminInfo;    //用户说明

    @Column(name = "commit_mode")
    private Integer commitMode;   //提交方式

    @Column(name = "report_status")
    private Integer reportStatus;   //状态报告

    @Column(name = "provide_up_mode")
    private String provideUpMode;   //上行提供方式

    @Column(name = "pay_channel")
    private Integer payChannel;   //付费方式  先付；后付

    private BigDecimal balance;  //用户余额

    @Column(name = "channel_id")
    private Integer channelId;   //对应通道组总表id

    @Column(name = "admin_status")
    private Integer adminStatus;   //管理员状态

    @Column(name = "show_report")
    private Integer showReport;   //是否显示报告

    @Column(name = "ip_limit")
    private String ipLimit;    //IP限制


    public Integer getPkId() {
        return pkId;
    }

    public void setPkId(Integer pkId) {
        this.pkId = pkId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public Integer getPassword() {
        return password;
    }

    public void setPassword(Integer password) {
        this.password = password;
    }

    public String getAdminInfo() {
        return adminInfo;
    }

    public void setAdminInfo(String adminInfo) {
        this.adminInfo = adminInfo;
    }

    public Integer getCommitMode() {
        return commitMode;
    }

    public void setCommitMode(Integer commitMode) {
        this.commitMode = commitMode;
    }

    public Integer getReportStatus() {
        return reportStatus;
    }

    public void setReportStatus(Integer reportStatus) {
        this.reportStatus = reportStatus;
    }

    public String getProvideUpMode() {
        return provideUpMode;
    }

    public void setProvideUpMode(String provideUpMode) {
        this.provideUpMode = provideUpMode;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Integer getChannelId() {
        return channelId;
    }

    public void setChannelId(Integer channelId) {
        this.channelId = channelId;
    }

    public Integer getAdminStatus() {
        return adminStatus;
    }

    public void setAdminStatus(Integer adminStatus) {
        this.adminStatus = adminStatus;
    }

    public Integer getShowReport() {
        return showReport;
    }

    public void setShowReport(Integer showReport) {
        this.showReport = showReport;
    }

    public String getIpLimit() {
        return ipLimit;
    }

    public void setIpLimit(String ipLimit) {
        this.ipLimit = ipLimit;
    }
}
